const db = require('./index')

module.exports = (sql, params) => {
  return new Promise((resolve, reject) => {
    db.query(sql, params, (err, resList) => {
      
      resolve({ err, resList })
    })
  })
}
